import React, { useState, useEffect } from "react";
import useTime from "../hooks/useTime";

const Time = () => {
    const [count, status] = useTime(10);
    return (
        <div className="btn-wrapper">
            <button disabled={status} className="btn btn-block btn-primary">{status ? `请仔细阅读本协议(${count})秒` : `开始注册`}</button>
        </div>
    )
}

export default Time